package com.imooc.beanannotation.multibean;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class BeanInvoker {

    @Autowired
    private List<BeanInterface> list;
    
    @Autowired
    private Map<String, BeanInterface> map;
    
    
    public void say() {
        if(null != list && 0 != list.size()) {
            System.out.println("List...");
            list.stream().forEach(b -> {
                System.out.println(b.getClass().getName());
            });
        }
    }
}
